<template>
  <div class="index">
        <router-view></router-view>

       <div id="footer">
        <router-link to="/index/home"><img src="/img/index.png" alt=""><span>首页</span></router-link>
        <router-link to="/index/shop"><img src="/img/shop.png" alt=""><span>商店</span></router-link>
        <router-link to="/index/server"><img src="/img/server.png" alt=""><span>服务</span></router-link>
        <router-link to="/index/mine"><img src="/img/mine.png" alt=""><span>我的</span></router-link> 
      </div>
  </div>
</template>

<script>
// @ is an alias to /src

export default {
  name: 'Index',
  
}
</script>

<style lang="scss" scoped>
.index{
  width: 100%;
  height: 100%;
  position: absolute;
  box-sizing: border-box;
  padding: 0 0 50px 0;
  top: 0;
  left: 0;
}


#footer {
  width: 100%;
  height: 50px;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 99;
  background-color: #fff;
  // background: #ccc;
  display: flex;
  justify-content: space-around;
  align-items: center;
  
  a{
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    font-size: 12px;
    color: #ccc;
    img{
      width: 25px;
      height: 25px;
      margin-bottom: 4px;
    }
  }

  .router-link-exact-active{
    color: #333;
  }

}

</style>
